package model

type OperateIdReq struct {
	Id string `json:"id"  dc:"运营后台管理员Id"    v:"required#运营后台管理员Id必填"`
}

type OperateIdRes struct {
	Id string `json:"id"  dc:"运营后台管理员Id"`
}

// OperateInfoRes 运营者详情
type OperateInfoRes struct {
	OperateName     string `json:"operateName"     v:"required#运营后台管理员的名字必填"  dc:"运营后台管理员的名字"`
	OperatePhone    string `json:"operatePhone"    v:"required#运营后台管理员的手机号必填"  dc:"运营后台管理员的手机号"`
	OperatePassword string `json:"operatePassword" v:"required#运营后台的密码必填"  dc:"运营后台的密码"`
	OperateSex      int    `json:"operateSex"      v:"required#运营管理员的性别必填"  dc:"运营管理员的性别 1 男  2 女"`
	OperateRemark   string `json:"operateRemark"   v:"length:0,150#运营管理员的备注150以内"  dc:"运营管理员的备注"`
}

type OperateIdAndInfoRes struct {
	OperateInfoRes
	OperateIdReq
}

// LoginStruct 登录需要的参数
type LoginStruct struct {
	Type      int    `json:"type"   v:"bail|required|in:1,2,3#|请选择登录类型|type错误,1密码登录,2手机登录,3微信登录"    dc:"1密码登录,2手机登录,3微信登录"`
	Username  string `json:"username"   v:"required-if:type,1#请输入员工名称" dc:"员工名称"`
	Phone     string `json:"phone"   v:"bail|required-if:type,2|phone#|请填写手机号|手机号不正确" dc:"手机号码"`
	PhoneCode string `json:"phoneCode"   v:"required-if:type,2#请填写手机验证码" dc:"手机验证码"`
	Password  string `json:"password"   v:"bail|required-if:type,1|password2#|账户登录请填写密码|密码必须包含大小写字母和数字" dc:"员工密码"`
}

// IsSMSSuccess 验证码校验
type IsSMSSuccess struct {
	Phone     string `json:"phone"   v:"bail|required|phone#|请填写手机号|手机号不正确" dc:"手机号码"`
	PhoneCode string `json:"phoneCode"   v:"required-if:type,1#请填写手机验证码" dc:"手机验证码"`
	Type      int    `json:"type"   v:"required|in:1,2,3#请填写手机验证类型" dc:"2手机验证码查询，3微信手机号查询"`
}
